package com.xlhj.boot.mockito.junit5.mapstruct;

import com.xlhj.boot.mockito.junit5.entity.SysUserInfo;
import com.xlhj.boot.mockito.junit5.vo.UserInfoVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring")
public interface UserInfoMapper {

    @Mapping(target = "createTime", dateFormat = "yyyy-MM-dd HH:mm:ss")
    @Mapping(target = "updateTime", dateFormat = "yyyy-MM-dd HH:mm:ss")
    UserInfoVo map(SysUserInfo userInfo);
}
